Integrand size = 19, antiderivative size = 82 \[ \int \frac {\left (d+e x^2\right ) (a+b \arctan (c x))}{x^5} \, dx=-\frac {b c d}{12 x^3}+\frac {b c \left (c^2 d-2 e\right )}{4 x}+\frac {1}{4} b c^2 \left (c^2 d-2 e\right ) \arctan (c x)-\frac {d (a+b \arctan (c x))}{4 x^4}-\frac {e (a+b \arctan (c x))}{2 x^2} \]
-1/12*b*c*d/x^3+1/4*b*c*(c^2*d-2*e)/x+1/4*b*c^2*(c^2*d-2*e)*arctan(c*x)-1/ 4*d*(a+b*arctan(c*x))/x^4-1/2*e*(a+b*arctan(c*x))/x^2
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.01 (sec) , antiderivative size = 97, normalized size of antiderivative = 1.18 \[ \int \frac {\left (d+e x^2\right ) (a+b \arctan (c x))}{x^5} \, dx=-\frac {a d}{4 x^4}-\frac {a e}{2 x^2}-\frac {b d \arctan (c x)}{4 x^4}-\frac {b e \arctan (c x)}{2 x^2}-\frac {b c d \operatorname {Hypergeometric2F1}\left (-\frac {3}{2},1,-\frac {1}{2},-c^2 x^2\right )}{12 x^3}-\frac {b c e \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},1,\frac {1}{2},-c^2 x^2\right )}{2 x} \]
-1/4*(a*d)/x^4 - (a*e)/(2*x^2) - (b*d*ArcTan[c*x])/(4*x^4) - (b*e*ArcTan[c *x])/(2*x^2) - (b*c*d*Hypergeometric2F1[-3/2, 1, -1/2, -(c^2*x^2)])/(12*x^ 3) - (b*c*e*Hypergeometric2F1[-1/2, 1, 1/2, -(c^2*x^2)])/(2*x)
Time = 0.25 (sec) , antiderivative size = 72, normalized size of antiderivative = 0.88, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.263, Rules used = {5511, 27, 359, 264, 216}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\left (d+e x^2\right ) (a+b \arctan (c x))}{x^5} \, dx\) |
\(\Big \downarrow \) 5511 |
\(\displaystyle -b c \int -\frac {2 e x^2+d}{4 x^4 \left (c^2 x^2+1\right )}dx-\frac {d (a+b \arctan (c x))}{4 x^4}-\frac {e (a+b \arctan (c x))}{2 x^2}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{4} b c \int \frac {2 e x^2+d}{x^4 \left (c^2 x^2+1\right )}dx-\frac {d (a+b \arctan (c x))}{4 x^4}-\frac {e (a+b \arctan (c x))}{2 x^2}\) |
\(\Big \downarrow \) 359 |
\(\displaystyle \frac {1}{4} b c \left (-\left (c^2 d-2 e\right ) \int \frac {1}{x^2 \left (c^2 x^2+1\right )}dx-\frac {d}{3 x^3}\right )-\frac {d (a+b \arctan (c x))}{4 x^4}-\frac {e (a+b \arctan (c x))}{2 x^2}\) |
\(\Big \downarrow \) 264 |
\(\displaystyle \frac {1}{4} b c \left (-\left (c^2 d-2 e\right ) \left (c^2 \left (-\int \frac {1}{c^2 x^2+1}dx\right )-\frac {1}{x}\right )-\frac {d}{3 x^3}\right )-\frac {d (a+b \arctan (c x))}{4 x^4}-\frac {e (a+b \arctan (c x))}{2 x^2}\) |
\(\Big \downarrow \) 216 |
\(\displaystyle -\frac {d (a+b \arctan (c x))}{4 x^4}-\frac {e (a+b \arctan (c x))}{2 x^2}+\frac {1}{4} b c \left (-\left (-c \arctan (c x)-\frac {1}{x}\right ) \left (c^2 d-2 e\right )-\frac {d}{3 x^3}\right )\) |
-1/4*(d*(a + b*ArcTan[c*x]))/x^4 - (e*(a + b*ArcTan[c*x]))/(2*x^2) + (b*c* (-1/3*d/x^3 - (c^2*d - 2*e)*(-x^(-1) - c*ArcTan[c*x])))/4
3.12.22.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*A rcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a , 0] || GtQ[b, 0])
Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[(c*x)^( m + 1)*((a + b*x^2)^(p + 1)/(a*c*(m + 1))), x] - Simp[b*((m + 2*p + 3)/(a*c ^2*(m + 1))) Int[(c*x)^(m + 2)*(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, p }, x] && LtQ[m, -1] && IntBinomialQ[a, b, c, 2, m, p, x]
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.)*((c_) + (d_.)*(x_)^2), x _Symbol] :> Simp[c*(e*x)^(m + 1)*((a + b*x^2)^(p + 1)/(a*e*(m + 1))), x] + Simp[(a*d*(m + 1) - b*c*(m + 2*p + 3))/(a*e^2*(m + 1)) Int[(e*x)^(m + 2)* (a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, p}, x] && NeQ[b*c - a*d, 0] && LtQ[m, -1] && !ILtQ[p, -1]
Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))*((f_.)*(x_))^(m_.)*((d_.) + (e_.)*(x _)^2)^(q_.), x_Symbol] :> With[{u = IntHide[(f*x)^m*(d + e*x^2)^q, x]}, Sim p[(a + b*ArcTan[c*x]) u, x] - Simp[b*c Int[SimplifyIntegrand[u/(1 + c^2 *x^2), x], x], x]] /; FreeQ[{a, b, c, d, e, f, m, q}, x] && ((IGtQ[q, 0] && !(ILtQ[(m - 1)/2, 0] && GtQ[m + 2*q + 3, 0])) || (IGtQ[(m + 1)/2, 0] && !(ILtQ[q, 0] && GtQ[m + 2*q + 3, 0])) || (ILtQ[(m + 2*q + 1)/2, 0] && !ILt Q[(m - 1)/2, 0]))
Time = 0.14 (sec) , antiderivative size = 96, normalized size of antiderivative = 1.17
method | result | size |
parts | \(a \left (-\frac {d}{4 x^{4}}-\frac {e}{2 x^{2}}\right )+b \,c^{4} \left (-\frac {\arctan \left (c x \right ) d}{4 c^{4} x^{4}}-\frac {\arctan \left (c x \right ) e}{2 c^{4} x^{2}}-\frac {-\frac {c^{2} d -2 e}{c x}+\frac {d}{3 c \,x^{3}}+\left (-c^{2} d +2 e \right ) \arctan \left (c x \right )}{4 c^{2}}\right )\) | \(96\) |
parallelrisch | \(\frac {3 x^{4} \arctan \left (c x \right ) b \,c^{4} d -6 \arctan \left (c x \right ) b \,c^{2} e \,x^{4}+6 a \,c^{2} e \,x^{4}+3 b \,c^{3} d \,x^{3}-6 b c e \,x^{3}-6 \arctan \left (c x \right ) b e \,x^{2}-6 a e \,x^{2}-b c d x -3 \arctan \left (c x \right ) b d -3 a d}{12 x^{4}}\) | \(99\) |
derivativedivides | \(c^{4} \left (\frac {a \left (-\frac {d}{4 c^{2} x^{4}}-\frac {e}{2 c^{2} x^{2}}\right )}{c^{2}}+\frac {b \left (-\frac {\arctan \left (c x \right ) d}{4 c^{2} x^{4}}-\frac {\arctan \left (c x \right ) e}{2 c^{2} x^{2}}-\frac {\left (-c^{2} d +2 e \right ) \arctan \left (c x \right )}{4}+\frac {c^{2} d -2 e}{4 c x}-\frac {d}{12 c \,x^{3}}\right )}{c^{2}}\right )\) | \(104\) |
default | \(c^{4} \left (\frac {a \left (-\frac {d}{4 c^{2} x^{4}}-\frac {e}{2 c^{2} x^{2}}\right )}{c^{2}}+\frac {b \left (-\frac {\arctan \left (c x \right ) d}{4 c^{2} x^{4}}-\frac {\arctan \left (c x \right ) e}{2 c^{2} x^{2}}-\frac {\left (-c^{2} d +2 e \right ) \arctan \left (c x \right )}{4}+\frac {c^{2} d -2 e}{4 c x}-\frac {d}{12 c \,x^{3}}\right )}{c^{2}}\right )\) | \(104\) |
risch | \(\frac {i b \left (2 e \,x^{2}+d \right ) \ln \left (i c x +1\right )}{8 x^{4}}-\frac {3 i \ln \left (-c x +i\right ) b \,c^{4} d \,x^{4}-3 i \ln \left (-c x -i\right ) b \,c^{4} d \,x^{4}-6 i \ln \left (-c x +i\right ) b \,c^{2} e \,x^{4}+6 i \ln \left (-c x -i\right ) b \,c^{2} e \,x^{4}-6 b \,c^{3} d \,x^{3}+6 i b e \ln \left (-i c x +1\right ) x^{2}+12 b c e \,x^{3}+3 i b d \ln \left (-i c x +1\right )+12 a e \,x^{2}+2 b c d x +6 a d}{24 x^{4}}\) | \(171\) |
a*(-1/4*d/x^4-1/2*e/x^2)+b*c^4*(-1/4*arctan(c*x)*d/c^4/x^4-1/2*arctan(c*x) /c^4*e/x^2-1/4/c^2*(-(c^2*d-2*e)/c/x+1/3*d/c/x^3+(-c^2*d+2*e)*arctan(c*x)) )
Time = 0.24 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.91 \[ \int \frac {\left (d+e x^2\right ) (a+b \arctan (c x))}{x^5} \, dx=-\frac {b c d x + 6 \, a e x^{2} - 3 \, {\left (b c^{3} d - 2 \, b c e\right )} x^{3} + 3 \, a d - 3 \, {\left ({\left (b c^{4} d - 2 \, b c^{2} e\right )} x^{4} - 2 \, b e x^{2} - b d\right )} \arctan \left (c x\right )}{12 \, x^{4}} \]
-1/12*(b*c*d*x + 6*a*e*x^2 - 3*(b*c^3*d - 2*b*c*e)*x^3 + 3*a*d - 3*((b*c^4 *d - 2*b*c^2*e)*x^4 - 2*b*e*x^2 - b*d)*arctan(c*x))/x^4
Time = 0.31 (sec) , antiderivative size = 99, normalized size of antiderivative = 1.21 \[ \int \frac {\left (d+e x^2\right ) (a+b \arctan (c x))}{x^5} \, dx=- \frac {a d}{4 x^{4}} - \frac {a e}{2 x^{2}} + \frac {b c^{4} d \operatorname {atan}{\left (c x \right )}}{4} + \frac {b c^{3} d}{4 x} - \frac {b c^{2} e \operatorname {atan}{\left (c x \right )}}{2} - \frac {b c d}{12 x^{3}} - \frac {b c e}{2 x} - \frac {b d \operatorname {atan}{\left (c x \right )}}{4 x^{4}} - \frac {b e \operatorname {atan}{\left (c x \right )}}{2 x^{2}} \]
-a*d/(4*x**4) - a*e/(2*x**2) + b*c**4*d*atan(c*x)/4 + b*c**3*d/(4*x) - b*c **2*e*atan(c*x)/2 - b*c*d/(12*x**3) - b*c*e/(2*x) - b*d*atan(c*x)/(4*x**4) - b*e*atan(c*x)/(2*x**2)
Time = 0.30 (sec) , antiderivative size = 80, normalized size of antiderivative = 0.98 \[ \int \frac {\left (d+e x^2\right ) (a+b \arctan (c x))}{x^5} \, dx=\frac {1}{12} \, {\left ({\left (3 \, c^{3} \arctan \left (c x\right ) + \frac {3 \, c^{2} x^{2} - 1}{x^{3}}\right )} c - \frac {3 \, \arctan \left (c x\right )}{x^{4}}\right )} b d - \frac {1}{2} \, {\left ({\left (c \arctan \left (c x\right ) + \frac {1}{x}\right )} c + \frac {\arctan \left (c x\right )}{x^{2}}\right )} b e - \frac {a e}{2 \, x^{2}} - \frac {a d}{4 \, x^{4}} \]
1/12*((3*c^3*arctan(c*x) + (3*c^2*x^2 - 1)/x^3)*c - 3*arctan(c*x)/x^4)*b*d - 1/2*((c*arctan(c*x) + 1/x)*c + arctan(c*x)/x^2)*b*e - 1/2*a*e/x^2 - 1/4 *a*d/x^4
\[ \int \frac {\left (d+e x^2\right ) (a+b \arctan (c x))}{x^5} \, dx=\int { \frac {{\left (e x^{2} + d\right )} {\left (b \arctan \left (c x\right ) + a\right )}}{x^{5}} \,d x } \]
Time = 0.73 (sec) , antiderivative size = 162, normalized size of antiderivative = 1.98 \[ \int \frac {\left (d+e x^2\right ) (a+b \arctan (c x))}{x^5} \, dx=-\frac {\frac {a\,d}{4}+\frac {a\,x^2\,\left (d\,c^2+2\,e\right )}{4}+\frac {b\,d\,\mathrm {atan}\left (c\,x\right )}{4}+\frac {b\,c\,d\,x}{12}+\frac {b\,c^3\,x^5\,\left (2\,e-c^2\,d\right )}{4}+\frac {b\,c\,x^3\,\left (3\,e-c^2\,d\right )}{6}-\frac {a\,c^4\,e\,x^6}{2}+\frac {b\,x^2\,\mathrm {atan}\left (c\,x\right )\,\left (d\,c^2+2\,e\right )}{4}+\frac {b\,c^2\,e\,x^4\,\mathrm {atan}\left (c\,x\right )}{2}}{c^2\,x^6+x^4}-\frac {\mathrm {atan}\left (\frac {c^2\,x}{\sqrt {c^2}}\right )\,\left (2\,b\,e-b\,c^2\,d\right )\,{\left (c^2\right )}^{3/2}}{4\,c} \]
- ((a*d)/4 + (a*x^2*(2*e + c^2*d))/4 + (b*d*atan(c*x))/4 + (b*c*d*x)/12 + (b*c^3*x^5*(2*e - c^2*d))/4 + (b*c*x^3*(3*e - c^2*d))/6 - (a*c^4*e*x^6)/2 + (b*x^2*atan(c*x)*(2*e + c^2*d))/4 + (b*c^2*e*x^4*atan(c*x))/2)/(x^4 + c^ 2*x^6) - (atan((c^2*x)/(c^2)^(1/2))*(2*b*e - b*c^2*d)*(c^2)^(3/2))/(4*c)